package cn.tedu._05weibo02.controller;

import cn.tedu._05weibo02.common.response.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/tests/")
@Slf4j
@Api(tags = "测试模块")
public class TestController {

    @GetMapping("test")
    @ApiOperation("测试模块")
    @ApiImplicitParam(name = "id", value = "测试id", required = true, dataType = "int")
    public JsonResult test(Integer id) {
        log.debug("测试模块");
        return JsonResult.ok(id);
    }

}
